A slighly better way to update your file name database than just issue a updatedb :
- #!/bin/bash
- # Better than updatedb
- #
- echo -n "Updating locatedb..."
- updatedb --prunepaths="/tmp /proc /var/tmp"
- date > /var/log/updatedb.log
- chmod +r /var/log/updatedb.log
- echo " done."